import request from '@/router/axios';

// 固件列表
export const iotfirmwareList = (data) => {
  return request({
    url: '/api/uic-system/iotfirmware/list',
    method: 'get',
    params: {
      ...data
    }
  })
}


// 固件分页列表
export const iotfirmwarePage = (data) => {
  return request({
    url: '/api/uic-system/iotfirmware/page',
    method: 'get',
    params: {
      ...data
    }
  })
}


// 新增或修改固件
export const iotfirmwareSubmit = (row) => {
  return request({
    url: '/api/uic-system/iotfirmware/submit',
    method: 'post',
    data: row
  })
}


// 删除固件
export const iotfirmwareRemove = (row) => {
  return request({
    url: '/api/uic-system/iotfirmware/remove',
    method: 'post',
    data: row
  })
}

